/**
 * 
 */
package prv.pursuivant.core.impl;

import java.util.List;

import prv.pursuivant.core.Kind;

import com.google.inject.Inject;

/**
 * @author Kwinto
 * 
 */
public class SubcategoryAchievType extends AbstractAchievType {

	private final String parentId;

	@Inject
	public SubcategoryAchievType(String name, String parentId,
			List<String> criteria) {
		super(name, criteria);
		this.parentId = parentId;
	}

	/**
	 * @see prv.pursuivant.core.AchievType#getId()
	 */
	@Override
	public String getId() {
		return parentId + "." + getName();
	}

	/**
	 * @see prv.pursuivant.core.AchievType#getKind()
	 */
	@Override
	public Kind getKind() {
		return KindImpl.SUBCATEGORY;
	}

}
